<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>布局</title>
    <!-- 引入Element UI的CSS文件 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        .c1 {
            border: 1px solid red;
            border-radius: 5px;
            height: 30px;
        }
    </style>
</head>
<body>
  <div id="app">
      <h1>2等分</h1>
      <!-- el-row表示行 el-col表示列 span表示等分一行 一行默认是24份 -->
      <el-row>
          <el-col span="12"><div class="c1"></div></el-col>
          <el-col span="12"><div class="c1"></div></el-col>
      </el-row>
      <h1>3等分</h1>
      <el-row>
          <el-col span="8"><div class="c1"></div></el-col>
          <el-col span="8"><div class="c1"></div></el-col>
          <el-col span="8"><div class="c1"></div></el-col>
      </el-row>
      <h1>1:2:3</h1>
      <el-row>
          <el-col span="4"><div class="c1"></div></el-col>
          <el-col span="8"><div class="c1"></div></el-col>
          <el-col span="12"><div class="c1"></div></el-col>
      </el-row>
      <h1>1:3:1:1</h1>
      <div style="width: 1200px; margin: 0px auto">
          <el-row gutter="30">
              <el-col span="4"><div class="c1"></div></el-col>
              <el-col span="12"><div class="c1"></div></el-col>
              <el-col span="4"><div class="c1"></div></el-col>
              <el-col span="4"><div class="c1"></div></el-col>
          </el-row>
      </div>
      <h1>4等分 间隔50 居中</h1>
      <h1>3等分 间隔10 居中</h1>
      <h1>行偏移</h1>
      <el-row>
          <el-col offset="4" span="20"><div class="c1"></div></el-col>
      </el-row>
      <h1>图片展示</h1>
      <el-row gutter="10">
          <el-col span="6"><img src="../image/a.jpg" height="100"></el-col>
          <el-col span="6"><img src="../image/b.jpg" height="100"></el-col>
          <el-col span="6"><img src="../image/c.jpg" height="100"></el-col>
          <el-col span="6"><img src="../image/d.jpg" height="100"></el-col>
      </el-row>
  </div>
  <!-- 引入Vue的js文件 -->
  <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
  <!-- 引入Element UI的js文件 -->
  <script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
  <script>
    let v = new Vue({
      el : "#app",
      data : function() {
        return {

        }
      },
      methods : {

      }
    })
  </script>
</body>
</html>